<?php
//$is_indo=lang()=="id";
/* @var $this SiteController */
$this->pageTitle = Yii::app()->name;
$this->menu = '';

 
?>

<div class="judul2" style="padding:3px 15px">
			BERITA
</div>
   <?php foreach($model_berita as $modelib): ?>
   <div style="background: #dedede repeat;">
     <div style="border-bottom: 1px dotted black;height:130px">
        <div valign="top" style="height:30px;padding-top:10px;padding-left: 15px;">
                  
            <div style="position: relative;padding-top: 10px;"><?
                $isi=$modelib['isi'] ;
                $gambar=u::getImage($isi,122,90,'');
                $bersihkan=strip_tags(trim($isi));
                $isi= str_replace("&nbsp;","",$bersihkan);
                $isi1='';

                if (strlen($gambar) > 0) {

                    $isi1 .='<div style="float:left;left:0px;top:0px;width:130px">';
                    $isi1 .=$gambar;
                    $isi1 .='</div>';
                    $isi1 .='<div style="float:left;left:0px;top:0px;">';
                    $isi1 .=' <div  style="width:380px;" class="judul_news">'.strtoupper($modelib['nama']).'</div>';  
                    $isi1 .=' <div  style="width:380px;" class="judul_tgl">'.sql2date($modelib['tgl_buat'],'d MMMM yyyy').'</div>';  
                    $isi1 .='<div style="width:380px;padding-bottom:5px;text-align:justify" class="isi">';
                    $isi1 .=u::break_words($isi,100,'');
                    $isi1 .='<a class="index_berita" href="'.url('berita/view',array('id'=>$modelib['id'])).'">.selengkapnya...</a>';
                    $isi1 .='</div>';
                  
                    $isi1 .='</div>';
                    $isi1 .='<div class="clear"> </div>';


                }else
                {
                    
                    $isi1 .='<div style="float:left;left:0px;top:0px;">';
                    $isi1 .=' <div style="width:380px;" class="judul_news">'.strtoupper($modelib['nama']).'</div>';  
                    $isi1 .=' <div  style="width:380px;" class="judul_tgl">'.sql2date($modelib['tgl_buat'],'d MMMM yyyy').'</div>';
                    $isi1 .='<div style="width:380px;padding-bottom:5px;text-align:justify" class="isi">';
                    $isi1 .=u::break_words($isi,200,'');
                    $isi1 .='<a href="'.url('berita/view',array('id'=>$modelib['id'])).'">.selengkapnya...</a>';
                    $isi1 .='</div>';                  
                    $isi1 .='</div>';
                    $isi1 .='<div class="clear"> </div>';


                }
                echo $isi1;
                ?>



                </div>
            
             </div>            
            </div>
              <?php endforeach; ?>
            
</div>

         
            <!--<div style="position: relative;">
             <div style="position: absolute;z-index:10"><img src="img/bar_hijau.jpg"/> </div>
              <div style="position: absolute;z-index:15;padding:3px 15px " class="judul">BERITA LAINNYA </div>
              <div style="position: absolute;z-index:15;left:150"><img src="img/panah_bar_hijau.png"/></div>
            </div>-->
            <div class="menuhijau">
              <div class="judul" style="float:left;padding:3px 15px">
    		BERITA LAINNYA 
    		</div>
              <div style="float:left;padding-left:15px">
    		<img src="img/panah_bar_hijau.png"/>
    		</div>
            <br class="clear"/>
              <div style="background:#fffde4;width:561px;padding: 15px 0px;">

                <?php foreach($model_beritalain as $modelain): 
                
                $isi_lain=$modelain['isi'] ;
                $bersihkan=strip_tags(trim($isi_lain));
                $isi_lain= str_replace("&nbsp;","",$bersihkan);
           
                
                ?>
                
                
                <div class="isi" style="padding: 5px;width:550px;padding-left:15px"> <img src="img/panah_beritalain.png"/> <a class="berita_lain" href="<?=url('berita/view',array('id'=>$modelain['id']))?>"><?=u::break_words($isi_lain,80,'')?></a></div>
                   <!-- <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>
                    <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>
                    <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>
                    <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>
                    <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>
                    <div class="subjudul2">lorem ipsum,lorem ipsumlorem ipsumlorem ipsum</div>-->
                    
                    
                    <?php endforeach; ?>
              </div>

       </div>
         
         
         


